package com.scvtc.domain.dto.system.menu;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Description: 菜单Dto
 * @Author: yiFei
 * @date: 2022/4/17 19:34
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SystemMenuDto {
    /**
     * 菜单id
     */
    private Long id;

    /**
     * 菜单名
     */
    private String name;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 菜单权限名
     */
    private String permissionName;

    /**
     * 是否缓存  0: 不缓存 1: 缓存
     */
    @ApiModelProperty(value = "是否缓存 0: 不缓存 1: 缓存")
    private Boolean keepAlive;

    /**
     * 子菜单
     */
    private List<SystemMenuDto> children;

}
